package com.shz.appletsapi.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component
@Profile(value = "task")
public class TaskService {
	
	
	@Autowired
	private MineInfoService mineInfoService;
	
	
	@Scheduled(cron = "0 0 1 * * ?")
	//@Scheduled(cron = "0/5 * *  * * ? ")	
	public void mineStatistics() {
		
		mineInfoService.mineStatistics();
			
	}

	
	
	

}
